package com.yanqu.road.server.cmd.activity.huashigang;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.pb.huashigang.HuaShiGangProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.huashigang.HuaShiGangMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

/**
 * @Author wpj
 * @Date 2020/10/27
 */
//@Cmd(code = GameProtocol.S_HUA_SHI_GANG_GET_ALL, desc = "")
public class GetAllPointCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ActivityInfo activityInfo = HuaShiGangMgr.getActivityInfo();
        HuaShiGangProto.CrossHuaShiGangCompleteCurrentPointReqMsg.Builder builder = HuaShiGangProto.CrossHuaShiGangCompleteCurrentPointReqMsg.newBuilder();
        builder.setActivityId(activityInfo.getActivityId());
        player.sendPacket(CrossProtocol.C2_HUA_SHI_GANG_GET_ALL, builder);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
